﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.Windows;

//namespace BL
//{
//    private static class DesignerProperties
//    {
//        public static bool GetIsInDesignMode(DependencyObject element)
//        {
//            if (!_isInDesignMode.HasValue)
//            {
//                _isInDesignMode =
//                    (null == Application.Current) ||
//                    Application.Current.GetType() == typeof(Application);
//            }
//            return _isInDesignMode.Value;
//        }

//        /// <summary>
//        /// Stores the computed InDesignMode value.
//        /// </summary>
//        private static bool? _isInDesignMode;
//    }
//}
